package com.catersystem.zmy.catersystem;

import android.app.Application;

import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;

import cn.jpush.android.api.JPushInterface;


/**
 * Created by Administrator on 2017/5/22.
 */

public class MyApplication extends Application {
    private static MyApplication application;
    @Override
    public void onCreate() {
        super.onCreate();
        application = this;

        //开启jpush跟日志
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);
        //讯飞语音合成初始化
        SpeechUtility.createUtility(this, SpeechConstant.APPID +"=59f82234");
    }

    /**
     * 获取单例application
     * @return
     */
    public static MyApplication getInstance(){
        return application;
    }
}
